package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 包名： com.cj.mobile.iabp.mvp.model.entity
 * 对象名： SearchInfo
 * 描述：患者信息
 * 作者： wly
 * 邮箱：wangliyang206@163.com
 * 创建日期： 2021/1/13 17:52
 */

public class PatientInfo implements Parcelable {

    public PatientInfo() {
    }

    public PatientInfo(String changedAt, String createdAt, String createdBy, String changedBy, String version, String delFlag, String extrasMap, String id, String code, String cnt, String name, String shot, String age, String sex, String height, String weight, String deptId, String deptName, String deptSec, String secName, String diagnose, String diagnoseS, String diagnoseF, String status, String per, String area, String bedNo, String friends, String phone, String doctorId, String machineCode, String installTime) {
        this.changedAt = changedAt;
        this.createdAt = createdAt;
        this.createdBy = createdBy;
        this.changedBy = changedBy;
        this.version = version;
        this.delFlag = delFlag;
        this.extrasMap = extrasMap;
        this.id = id;
        this.code = code;
        this.cnt = cnt;
        this.name = name;
        this.shot = shot;
        this.age = age;
        this.sex = sex;
        this.height = height;
        this.weight = weight;
        this.deptId = deptId;
        this.deptName = deptName;
        this.deptSec = deptSec;
        this.secName = secName;
        this.diagnose = diagnose;
        this.diagnoseS = diagnoseS;
        this.diagnoseF = diagnoseF;
        this.status = status;
        this.per = per;
        this.area = area;
        this.bedNo = bedNo;
        this.friends = friends;
        this.phone = phone;
        this.doctorId = doctorId;
        this.machineCode = machineCode;
        this.installTime = installTime;
    }

    private String changedAt;
    private String createdAt;
    private String createdBy;
    private String changedBy;
    private String version;
    private String delFlag;
    private String extrasMap;
    // 患者id
    private String id;
    // 登记号
    private String code;
    // 安装次数
    private String cnt;
    // 患者姓名
    private String name;
    private String shot;
    private String age;
    private String sex;
    private String height;
    private String weight;
    private String deptId;
    private String deptName;
    private String deptSec;
    private String secName;
    // 其它诊断
    private String diagnose;
    // 次要诊断
    private String diagnoseS;
    // 主要诊断
    private String diagnoseF;
    private String status;
    private String per;
    // 所在病房
    private String area;
    // 床号
    private String bedNo;
    // 患者联系人
    private String friends;
    // 联系人电话
    private String phone;
    // 医生ID
    private String doctorId;
    private String machineCode;
    private String installTime;

    public String getChangedAt() {
        return changedAt;
    }

    public void setChangedAt(String changedAt) {
        this.changedAt = changedAt;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getChangedBy() {
        return changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getExtrasMap() {
        return extrasMap;
    }

    public void setExtrasMap(String extrasMap) {
        this.extrasMap = extrasMap;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCnt() {
        return cnt;
    }

    public void setCnt(String cnt) {
        this.cnt = cnt;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShot() {
        return shot;
    }

    public void setShot(String shot) {
        this.shot = shot;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptSec() {
        return deptSec;
    }

    public void setDeptSec(String deptSec) {
        this.deptSec = deptSec;
    }

    public String getSecName() {
        return secName;
    }

    public void setSecName(String secName) {
        this.secName = secName;
    }

    public String getDiagnose() {
        return diagnose;
    }

    public void setDiagnose(String diagnose) {
        this.diagnose = diagnose;
    }

    public String getDiagnoseS() {
        return diagnoseS;
    }

    public void setDiagnoseS(String diagnoseS) {
        this.diagnoseS = diagnoseS;
    }

    public String getDiagnoseF() {
        return diagnoseF;
    }

    public void setDiagnoseF(String diagnoseF) {
        this.diagnoseF = diagnoseF;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPer() {
        return per;
    }

    public void setPer(String per) {
        this.per = per;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public String getFriends() {
        return friends;
    }

    public void setFriends(String friends) {
        this.friends = friends;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(String doctorId) {
        this.doctorId = doctorId;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public String getInstallTime() {
        return installTime;
    }

    public void setInstallTime(String installTime) {
        this.installTime = installTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.changedAt);
        dest.writeString(this.createdAt);
        dest.writeString(this.createdBy);
        dest.writeString(this.changedBy);
        dest.writeString(this.version);
        dest.writeString(this.delFlag);
        dest.writeString(this.extrasMap);
        dest.writeString(this.id);
        dest.writeString(this.code);
        dest.writeString(this.cnt);
        dest.writeString(this.name);
        dest.writeString(this.shot);
        dest.writeString(this.age);
        dest.writeString(this.sex);
        dest.writeString(this.height);
        dest.writeString(this.weight);
        dest.writeString(this.deptId);
        dest.writeString(this.deptName);
        dest.writeString(this.deptSec);
        dest.writeString(this.secName);
        dest.writeString(this.diagnose);
        dest.writeString(this.diagnoseS);
        dest.writeString(this.diagnoseF);
        dest.writeString(this.status);
        dest.writeString(this.per);
        dest.writeString(this.area);
        dest.writeString(this.bedNo);
        dest.writeString(this.friends);
        dest.writeString(this.phone);
        dest.writeString(this.doctorId);
        dest.writeString(this.machineCode);
        dest.writeString(this.installTime);
    }

    public void readFromParcel(Parcel source) {
        this.changedAt = source.readString();
        this.createdAt = source.readString();
        this.createdBy = source.readString();
        this.changedBy = source.readString();
        this.version = source.readString();
        this.delFlag = source.readString();
        this.extrasMap = source.readString();
        this.id = source.readString();
        this.code = source.readString();
        this.cnt = source.readString();
        this.name = source.readString();
        this.shot = source.readString();
        this.age = source.readString();
        this.sex = source.readString();
        this.height = source.readString();
        this.weight = source.readString();
        this.deptId = source.readString();
        this.deptName = source.readString();
        this.deptSec = source.readString();
        this.secName = source.readString();
        this.diagnose = source.readString();
        this.diagnoseS = source.readString();
        this.diagnoseF = source.readString();
        this.status = source.readString();
        this.per = source.readString();
        this.area = source.readString();
        this.bedNo = source.readString();
        this.friends = source.readString();
        this.phone = source.readString();
        this.doctorId = source.readString();
        this.machineCode = source.readString();
        this.installTime = source.readString();
    }

    protected PatientInfo(Parcel in) {
        this.changedAt = in.readString();
        this.createdAt = in.readString();
        this.createdBy = in.readString();
        this.changedBy = in.readString();
        this.version = in.readString();
        this.delFlag = in.readString();
        this.extrasMap = in.readString();
        this.id = in.readString();
        this.code = in.readString();
        this.cnt = in.readString();
        this.name = in.readString();
        this.shot = in.readString();
        this.age = in.readString();
        this.sex = in.readString();
        this.height = in.readString();
        this.weight = in.readString();
        this.deptId = in.readString();
        this.deptName = in.readString();
        this.deptSec = in.readString();
        this.secName = in.readString();
        this.diagnose = in.readString();
        this.diagnoseS = in.readString();
        this.diagnoseF = in.readString();
        this.status = in.readString();
        this.per = in.readString();
        this.area = in.readString();
        this.bedNo = in.readString();
        this.friends = in.readString();
        this.phone = in.readString();
        this.doctorId = in.readString();
        this.machineCode = in.readString();
        this.installTime = in.readString();
    }

    public static final Parcelable.Creator<PatientInfo> CREATOR = new Parcelable.Creator<PatientInfo>() {
        @Override
        public PatientInfo createFromParcel(Parcel source) {
            return new PatientInfo(source);
        }

        @Override
        public PatientInfo[] newArray(int size) {
            return new PatientInfo[size];
        }
    };
}
